<template>
    <div id="comment">
        <div id="title">
            <h3>{{user}}</h3>
            <span>在{{time}}
                <h6 v-if="purchase">买过他卖的</h6>
                <h6 v-else>卖给过他</h6>
                {{thing}}这样评价
            </span>
        </div>
        <div id="evaluation">
            {{evaluation}}
        </div>
    </div>
</template>

<script>
export default {
  name: 'comment',
  props: {
        user: String,
        time: String,
        purchase: Boolean,
        thing: String,
        evaluation: String
  }
}
</script>